using System;
using System.Collections.Generic;
using System.Text;

namespace CoVuaCtrl
{
    public class OCo
    {
        protected int _x;
        protected int _y;

        public OCo(int x, int y) 
        {
            this._x = x;
            this._y = y;
        }

        public int x
        {
            get
            {
                return _x;
            }
            set
            {                
                _x = value;
            }
        }
        public int y
        {
            get
            {
                return _y;
            }
            set
            {                
                _y = value;
            }
        }

        public Boolean sosanh(Object obj) 
        {
            if (obj == null) 
                return false;
            
            if (GetType() != obj.GetType()) 
                return false;
            
            OCo other = (OCo) obj;
            if (this._x != other._x) 
                return false;
            
            if (this._y != other._y)
                return false;
            
            return true;
        }

        public int layX()
        {
            return _x;
        }

        public int layY()
        {
            return _y;
        }

        public void ganX(int x)
        {
            this._x = x;
        }

        public void ganY(int y)
        {
            this._y = y;
        }
        
    }
}
